From: Ævar Arnfjörð Bjarmason Date: Sun, 8 May 2005 17:09:36 +0000 (+0000) Subject: * Typo: missing $ X-Git-Tag: 1.5.0alpha2~255 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=4d556548eb8f2d020d99b813758fc50706a1821a;p=lhc%2Fweb%2Fwiklou.git * Typo: missing $ --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 56151906b1..e1e9c2a617 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -162,7 +162,7 @@ function wfRandom() { # The maximum random value is "only" 2^31-1, so get two random # values to reduce the chance of dupes $max = mt_getrandmax(); - $rand = number_format( (mt_rand() * max + mt_rand()) + $rand = number_format( (mt_rand() * $max + mt_rand()) / $max / $max, 12, '.', '' ); return $rand; }